Page({
  data: {
    flag: 0,
    ks: '',
    currentTab: 0,
    listData0:[{id:'01',ks:'皮肤科门诊'},
              {id:'02',ks:'儿科'}],
    listData1:[
              {id:'01',ks:'神经内科门诊'},
              {id:'02',ks:'心脏内科门诊'},
              {id:'03',ks:'消化内科门诊'},
              {id:'04',ks:'呼吸内科门诊'},
              {id:'05',ks:'内分泌科门诊'},
              {id:'06',ks:'血液内科门诊'},
              {id:'07',ks:'肾病内科门诊'},
              {id:'08',ks:'过敏反应科门诊'}],
    listData2:[
                {id:'09',ks:'眼科门诊'},
                {id:'10',ks:'口腔科门诊'},
                {id:'11',ks:'皮肤科门诊'},
                {id:'12',ks:'骨外科门诊'},
                {id:'13',ks:'耳鼻咽喉头颈科门诊'},
                {id:'14',ks:'甲状腺乳腺外科门诊'},
                {id:'15',ks:'血管外科门诊'},
                {id:'16',ks:'胸外科门诊'},
                {id:'17',ks:'泌尿外科门诊'},
                {id:'18',ks:'心血管外科门诊'},
                {id:'19',ks:'神经外科门诊'},
                {id:'20',ks:'胃肠外科门诊'},
                {id:'21',ks:'肝胆外科门诊'}],    
    listData3:[
                  {id:'22',ks:'产科急诊'},
                  {id:'23',ks:'妇科急诊'},
                  {id:'24',ks:'儿科急诊'},
                  {id:'25',ks:'神经内科科急诊'},
                  {id:'26',ks:'耳鼻咽喉科急诊'},],     
    listData3:[
                    {id:'27',ks:'妇产科门诊'},
                    {id:'28',ks:'儿科门诊'},
                    {id:'29',ks:'康复医学科门诊'},
                    {id:'30',ks:'统合医疗科门诊'},
                    {id:'31',ks:'超声影像科'},
                    {id:'32',ks:'药学部'},
                    {id:'33',ks:'保健科'},],        
  },
  switchNav: function(e) {
    var page = this;
    var id = e.target.id;
    if (this.data.currentTab == id) {
      return false;
    } else {
      page.setData({
        currentTab: id
      });
    }
    page.setData({
      flag: id
    });
  },
  catchTouchMove: function (res) {
    return false
  },
  
  getLists(e) {
    console.log(e.currentTarget.dataset.id)
    console.log('ks', e.currentTarget.dataset.id.ks)
    this.setData({
      ks: e.currentTarget.dataset.id.ks
    })
    console.log('ks1', this.data.ks)
    wx.navigateTo({
      url: '/pages/yuyuesj/yuyuesj'//+e.currentTarget.dataset.id.ks 每一个科室都有一个页面
    })
    wx.setStorage({
      key: 'ks',
      data: this.data.ks,
    })
  },
  onLoad: function (options) {

  }
})
